/**
 * Created with Intellij IDEA.
 * Description;
 * User:墨琦
 * Data:2023-02-20
 * Time:21:22
 */
public class Rectangle {
    private double width;
    private double length;
    Rectangle()
    {
    }

    public double getWidth() {
        return width;
    }
    public void setWidth(double width) {
        this.width = width;
    }
    public double getLength() {
        return length;
    }
    public void setLength(double length) {
        this.length = length;
    }
    public double getArea() {
        return width*length;
    }
    public double getgrith() {
        return (width+length)*2;
    }
}
